package com.gx.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gx.mapper.EmailMessageRecordDAO;
import com.gx.mapper.MemberInformationDAO;
import com.gx.po.EmailMessageRecord;
import com.gx.po.MemberInformation;
import com.gx.service.IAppMemberService;

@Transactional
@Service("appMemberService")

public class AppMemberServiceImpl implements IAppMemberService {
	
	//注入DAO层/mapper
	EmailMessageRecordDAO emailMessageRecordDAO;
	MemberInformationDAO memberInformationDAO;

	@Override
	public List<EmailMessageRecord> getRecentlyRecordByEmail(String email) {
		// TODO Auto-generated method stub
		return this.emailMessageRecordDAO.getRecentlyRecordByEmail(email);
	}

	@Override
	public MemberInformation findMemberbyEmail(String email) {
		// TODO Auto-generated method stub
		return this.memberInformationDAO.findMemberbyEmail(email);
	}

}
